home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11463 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  906 b 

  1. Path: utpapa.ph.utexas.edu!wkshih
  2. From: wkshih@utpapa.ph.utexas.edu ()
  3. Newsgroups: comp.lang.c
  4. Subject: Debugging an optimizaed code
  5. Date: 24 Mar 1996 16:22:36 GMT
  6. Organization: Physics Department, University of Texas at Austin
  7. Distribution: na
  8. Message-ID: <4j3ssc$ri5@geraldo.cc.utexas.edu>
  9. NNTP-Posting-Host: utpapa.ph.utexas.edu
  10.  
  11. Hi, 
  12.  
  13. I have a program that crashes when compiled with -O on an IBM machine.
  14. I have been trying to locate the problem by printing out some variable
  15. values.  But I found that it is nearly impossible since the point it
  16. crashed moved around when new printf statements were inserted.  I was
  17. compiling with xlc.  -O is equivalent to -O2, which is the lowest level
  18. of optimization according to the man page.  Of course, the code works
  19. fine without -O.  Even on a sun workstation the optimized code runs ok.
  20.  
  21. I would very much appreciate it if somebody can help me out.  Thanks!
  22.  
  23.